package day2test3;

import java.io.Serializable;
import java.util.Date;


//1,一个停车场,内有多个车位,可停入各种车辆
//2·只有具备车牌并高度低于
//3米的车辆可停入3,停入时开始计费,按每小时2元
//4,查询全部停车位的状态
//5,按车牌及停车位号取车,取车时收停车费,查询统计全部的收费记录



public class Car implements Serializable{
/**
	 * 
	 */
	private static final long serialVersionUID = -3405541244373988677L;
private String id;//车牌
private double high;//车高
private String time1;//停车时间
private String time2; //出车时间
private double cost;//停车花费
private int space_id;//停车位号
public int getSpace_id() {
	return space_id;
}
public void setSpace_id(int space_id) {
	this.space_id = space_id;
}
public String getId() {
	return id;
}
public void setId(String id) {
	this.id = id;
}
public double getHigh() {
	return high;
}
public void setHigh(double high) {
	this.high = high;
}
public String getTime1() {
	return time1;
}
public void setTime1(String hour) {
	this.time1 = hour;
}
public String getTime2() {
	return time2;
}
public void setTime2(String time2) {
	this.time2 = time2;
}
public double getCost() {
	return cost;
}
public void setCost(Double cost) {
	this.cost = cost;
}


public Car(String id, double high, String time1, String time2, Double cost,int space_id) {
	super();
	this.id = id;
	this.high = high;
	this.time1 = time1;
	this.time2 = time2;
	this.cost = cost;
	this.space_id= space_id;

}
public Car() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "Car [id=" + id + ", high=" + high + ", time1=" + time1 + ", time2=" + time2 + ", cost=" + cost
			+ ", space_id=" + "]";
}



}
